package com.xinjiang.electricpower.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * @author feizhao
 * @date 2022/11/3
 * @apiNote 工单监控VO类
 */
@Data
@Builder
@ToString
@ApiModel("工单监控VO类")
public class WorkOrderMonitorVO {

    /**
     * 工单id
     */
    @ApiModelProperty(value = "工单id")
    private String id;

    /**
     * 工单编号
     */
    @Excel(name = "工单编号")
    @ApiModelProperty(value = "工单编号")
    private String orderNo;

    /**
     * 工单类型
     */
    @Excel(name = "工单类型")
    @ApiModelProperty(value = "工单类型")
    private String orderTypeName;
    /**
     * 工单类型
     */
    @Excel(name = "工单类型")
    @ApiModelProperty(value = "工单类型")
    private String orderTypeCode;

    /**
     * 原系统工单编号
     */
    @Excel(name = "原系统工单编号")
    @ApiModelProperty(value = "原系统工单编号")
    private String generalOrderNo;

    /**
     * 来源系统
     */
    @Excel(name = "来源系统")
    @ApiModelProperty(value = "来源系统")
    private String systemName;
    /**
     * 供电所名称
     */
    @Excel(name = "供电单位")
    @ApiModelProperty(value = "供电单位")
    private String orgName;
    /**
     * 台区名称
     */
    @Excel(name = "台区")
    @ApiModelProperty(value = "台区")
    private String tgName;
    /**
     * 工单状态 1待处理(签收)、2执行中、3已完成
     */
    @Excel(name = "工单状态",readConverterExp = "1=待签收、2=执行中、3=已完成")
    @ApiModelProperty(value = "工单状态 1待处理(签收)、2执行中、3已完成")
    private String status;
    /**
     * 当前节点
     */
    @Excel(name = "当前节点")
    @ApiModelProperty(value = "当前节点")
    private String activname;
    /**
     * 派单时间
     */
    @Excel(name = "派单时间",dateFormat="yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty(value = "派单时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime dispatchTime;
    /**
     * 当前处理人
     */
    @Excel(name = "当前处理人")
    @ApiModelProperty(value = "当前处理人")
    private String usernames;
    /**
     * 派单时间
     */
    @Excel(name = "创建时间",dateFormat="yyyy/MM/dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;


}
